import { getConfig } from './dao.js'



export async function authCheck(host_name, api_key) {
    try {
        let config = await getConfig(host_name)    
        return config.api_key == api_key
    } catch (error) {
        throw error
    }
}